package com.xiaoli.user.api;

import com.xiaoli.user.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-server")
public interface IUserClient {

    @GetMapping("getUserById")
    UserDTO getUserById(Long id);

    @PostMapping("updatePoint")
    void updatePoint(@RequestParam("id") Long id,@RequestParam("changePoint") Integer changePoint);
}
